package zd.cornermemory.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import zd.cornermemory.R;

public class CodeActivity extends BaseActivity implements View.OnClickListener{
    private RelativeLayout layout_1;
    private RelativeLayout layout_2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.acitivity_code);
        layout_1 = findViewById(R.id.layout_1);
        layout_2 = findViewById(R.id.layout_2);
        setBackImage();
        layout_1.setOnClickListener(this);
        layout_2.setOnClickListener(this);

    }


    @Override
    public void onClick(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.layout_1:
                intent = new Intent(mContext, CodeCornerActivity.class);
                startActivity(intent);
                break;
            case R.id.layout_2:
                intent = new Intent(mContext, CodeEdgeActivity.class);
                startActivity(intent);
                break;
        }
    }
}
